Part Number Hot Search : 
2N1564 227M0 EPA3533S ITS410 5G479D 0HSR3 0SERI 1V102M
Product Description
Full Text Search
 

To Download LK204-7T-1U-WB Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  lk204-7t-1u technical manual revision: 1.2
contents contents ii 1 getting started 1 1.1 display options available . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.4 connecting to a pc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.5 installing the software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.5.1 uproject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 hardware information 6 2.1 standard power cable connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 communication connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2.1 power/data connector for non-usb modules only . . . . . . . . . . . . . . . . . . 8 2.2.2 usb mini-b connector for usb modules only . . . . . . . . . . . . . . . . . . . . 9 2.3 db-9 connector - for non-usb modules only . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3.1 power through db-9 jumper - for non-usb modules only . . . . . . . . . . . . . 10 2.4 alternate communication headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4.1 serial header for non-usb modules only . . . . . . . . . . . . . . . . . . . . . . . 11 2.4.2 optional internal usb header for usb modules only . . . . . . . . . . . . . . . . . 12 2.5 protocol select jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.6 general purpose outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.7 manual override . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3 troubleshooting 15 3.1 the display does not turn on when power is applied. . . . . . . . . . . . . . . . . . . . . . . 15 3.2 the display module is not communicating. . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.3 the display module is communicating, however text canno t be displayed. . . . . . . . . . . 16 4 communications 16 4.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1.1 i 2 c communication summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 6 4.1.2 i 2 c transaction example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.1.3 serial communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.1.4 usb communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.2 changing the i 2 c slave address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.3 changing the baud rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.4 setting a non-standard baud rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5 text 21 5.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1.1 character set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1.2 control characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.2 auto scroll on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 matrix orbital lk204-7t-1u ii
5.3 auto scroll off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.4 clear screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.5 changing the startup screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.6 set auto line wrap on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.7 set auto line wrap off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.8 set cursor position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.9 go home . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.10 move cursor back . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.11 move cursor forward . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.12 underline cursor on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.13 underline cursor off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.14 blinking block cursor on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.15 blinking block cursor off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6 special characters 26 6.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.2 creating a custom character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.3 saving custom characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.4 loading custom characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6.5 save startup screen custom characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6.6 initialize medium number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 6.7 place medium numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 6.8 initialize large numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.9 place large number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.10 initialize horizontal bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.11 place horizontal bar graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.12 initialize narrow vertical bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.13 initialize wide vertical bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.14 place vertical bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7 general purpose output 32 7.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.2 general purpose output off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 7.3 general purpose output on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 7.4 set startup gpo state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 8 dallas 1-wire 35 8.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 8.2 search for a 1-wire device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 8.3 dallas 1-wire transaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 9 keypad 37 9.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 9.2 auto transmit key presses on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.3 auto transmit key presses off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.4 poll key press . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 9.5 clear key buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 matrix orbital lk204-7t-1u iii
9.6 set debounce time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 9.7 set auto repeat mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 9.8 auto repeat mode off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 9.9 assign keypad codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 9.10 keypad backlight off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 9.11 set keypad brightness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 9.12 set and save keypad brightness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 10 display functions 43 10.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 10.2 display on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 10.3 display off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 10.4 set brightness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 10.5 set and save brightness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 10.6 set backlight base colour . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 10.7 set contrast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 10.8 set and save contrast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 11 data security 46 11.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 11.2 set remember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 11.3 data lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 11.4 set and save data lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 11.5 write customer data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 11.6 read customer data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 12 miscellaneous 49 12.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 12.2 read version number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 12.3 read module type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 13 command summary 52 13.1 communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 13.2 text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 13.3 special characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 13.4 general purpose output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 13.5 dallas 1-wire . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 13.6 keypad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 13.7 display functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 13.8 data security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 13.9 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 13.10command by number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 matrix orbital lk204-7t-1u iv
14 appendix 58 14.1 speci?cations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 14.1.1 environmental . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 14.1.2 electrical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 14.2 optical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 14.3 physical layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 14.4 ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 14.5 de?nitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 14.6 contacting matrix orbital . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 14.7 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 matrix orbital lk204-7t-1u v
1 getting started figure 1: lk204-7t-1u the lk204-7t-1u is an intelligent graphic lcd display desig ned to decrease development time by providing an instant solution to any project. with the abili ty to communicate via serial rs-232/ttl and i 2 c protocols, the versatile lk204-7t-1u can be used with virtu ally any controller. furthermore, the lk204- 7t-1u-usb has the ability to communicate via usb. the ease of use of these displays is further enhanced by an intuitive command structure to allow display settings such as backlight brightness, contrast and baud rate to be software controlled. additionally, up to thirty- two custom charaters such as character sets for bar graphs, medium and large numbers may be stored in the non- volitile memory to be easily recalled and displayed at any time. 1.1 display options available both the (non-usb) lk204-7t-1u and the (usb) lk204-7t-1u-u sb modules come in a variety of colours, including the standard grey text with yellow-gree n backgournd, grey text with white background, white text with blue background, and stylish tricolor text o n back blackground. voltage and temperature options are also available to allow you to select the display which will best ?t your project needs. figure 2: lk204-7t-1u options matrix orbital lk204-7t-1u 1
1.2 accessories note matrix orbital provides all the interface accessories need ed to get your display up and running. you will ?nd these accessories and others on o ur e-commerce website at http://www.matrixorbital.com. to contact a sales assoc iate see section 14.6 for contact information. figure 3: standard power figure 4: 5v power adapter matrix orbital lk204-7t-1u 2
figure 5: 3ft mini-b usb cable figure 6: breadboard cable figure 7: communication & power cable figure 8: serial cable matrix orbital lk204-7t-1u 3
figure 9: pc bay insert 1.3 features ? 20 column by 4 line alphanumeric liquid crystal display ? selectable communication protocol, rs-232 or i 2 c for non-usb model; usb only for usb models ? 128 byte buffered communication ? lightning fast communication speeds, up to 115 kbps for rs-2 32 and 100 kbps for i 2 c ? default 19.2 kbps serial communication speed ? use of up to 127 modules on the same 2 wire i 2 c interface ? extended temperature available for extreme environments o f -20c to 70c ? low voltage power supply available ? built in font with provision for up to 8 user de?ned character s ? ability to add a customized splash / startup screen ? adjustable contrast and backlight brightness ? horizontal or vertical bar graphs ? built in tactile keypad ? 3 built in tri-color led's ? 3 multi purpose low power 3.3v gpos 1.4 connecting to a pc the lk204-7t-1u non-usb connects seamlessly to a pc and it is an excellent means of testing the functionality and uploading new fonts and bitmaps. you will require a standard rs-232 9-pin serial cable such as the one pictured in figure 8, as well as a modi?ed 5v pow er adapter such as the one pictured in figure 4. in order to connect your non-usb display to a personal comput er follow these easy instructions: 1. plug the serial cable into the com port you wish to use. 2. connect the modi?ed 5v power adapter to a power lead from yo ur pc power supply (you will have to open your computer case). 3. connect the serial cable to the db-9 connector on the back o f the display. 4. connect the 5v power adapter to the 4-pin connector on the b ack of the display. matrix orbital lk204-7t-1u 4
in order to connect your usb display to a personal computer si mply plug the mini-b usb cable from the pc to the usb connector on the display. in order to power your usb display from a non-usb source simpl y plug the power cable standard into the back of the display and the other end to a suitable power so urce. there is no communication through the power cable standard. 1.5 installing the software 1.5.1 uproject uproject was designed by matrix orbital to provide a simple a nd easy to use interface that will allow you to test all of the features of our alpha numeric displays. to install uproject from the matrix orbital cd, follow the fo llowing steps: 1. insert the matrix orbital cd-rom into the cd drive 2. locate the ?le, uproject.exe, which should be in the "cd-d rive:\download" directory. 3. copy uproject.exe to a directory that you wish to run it fro m. matrix orbital lk204-7t-1u 5
4. double click on "uproject.exe" be sure to check the information selected in the com setup the ?rst time uproject is run. once this infor- mation is entered correctly the program can be used to contro l all functions of the graphic display. comport the serial port the display is plugged in to. baudrate the communication speed the display module is set figure 10: uproject settings notes ? uproject and other alphanumeric software may also be downlo aded from matrix or- bital's support site at http://www.matrixorbital.ca/sof tware/software_alpha/ 2 hardware information refer to the following diagram for this chapter: matrix orbital lk204-7t-1u 6
1 standard power cable connector 4 location for optional serial header 2 power/data connector 5 protocol select jumpers 3 db9 connector 6 gpos figure 11: lk204-7t-1u non-usb 1 standard power cable connector 4 location for optional internal usb cable header* 2 usb mini-b connector 5 gpos 3 protocol select jumpers figure 12: lk204-7t-1u usb note the usb module can have a header populated at your request to a llow for an internal usb cable, talk to a sales representitive for detai ls. 2.1 standard power cable connector power to the lk204-7t-1u can be supplied using the standard p ower/data or usb connetors on the non-usb and usb models respectively, or through the standar d power cable connector. this alternate power header allows a standard ?oppy cable to be inserted and used to provide power to the device. the power requirements for both the non-usb and usb versions of t he lk204-7t-1u are shown below. matrix orbital lk204-7t-1u 7
table 1: power requirements standard -lv supply voltage +5vdc 0.25v +3.3vdc 0.25v supply current ma typical supply backlight current ma typical warnings ? do not apply any power with reversed polarization. ? do not apply any voltage other than the speci?ed voltage. ? special care should be taken to ensure that a ?oppy style cabl e is not mistakenly plugged into the power/data connector on t he non-usb module as this will damaged the device. 2.2 communication connectors 2.2.1 power/data connector for non-usb modules only the power/data connector provides a standard connector for powering and communicati ng to the non- usb display module. the lk204-7t-1u requires ?ve volts for t he standard display module. the voltage is applied through pins one and four of the four pin power/data connector . pins two and three are reserved for serial transmission, using either the rs-232/ttl or the i 2 c protocol, depending on what has been selected by the protocol select jumpers. matrix orbital lk204-7t-1u 8
pin 1 pwr (see table 1 on the preceding page) pin 2 rx/scl (i2c clock) pin 3 tx/sda (i2c data) pin 4 gnd figure 13: power connector and pin-out for lk204-7t-1u non- usb 2.2.2 usb mini-b connector for usb modules only the usb mini-b connector provides a standard connector for powering and communicati ng to the usb display module. as with the non-usb version, the lk204-7t-1 u-usb requires ?ve volts for the standard display module. figure 14: usb mini-b connector for lk204-7t-1u-usb 2.3 db-9 connector - for non-usb modules only the lk204-7t-1u provides a db-9 connector to readily interface with serial devices which use the eia232 standard signal levels of 30v. it is also possible to communicate at ttl levels of 0 to +5 v by matrix orbital lk204-7t-1u 9
setting the protocol select jumpers to ttl. as an added feature it is also possible to apply power t hrough pin 9 of the db-9 connector in order to reduce cable clutter. however, in order to accomp lish this you must set the power through db-9 jumper . pin 2 tx/sda (i2c data) pin 3 rx/scl (i2c clock) pin 5 gnd pin 9 pwr (must solder power through db-9 jumper. see table 1 on page 8 for power requirements.) figure 15: rs-232 pin-out 2.3.1 power through db-9 jumper - for non-usb modules only in order to provide power through pin 9 of the db-9 connector you must place a solder jumper on the power through db-9 jumper pictured in figure 16 below. the lk204-7t-1u allows all volt age models to use the power through db-9 option, see table 1 for display mod ule voltage requirements. matrix orbital lk204-7t-1u 10
figure 16: power through db-9 jumper note we do not recommend that you use pin 9 (ring indicator) of the p c to power the display module. you will have to make a special db9 cable. warning do not apply voltage through pin 9 of the db-9 connector and through the power/data connector at the same time. 2.4 alternate communication headers 2.4.1 serial header for non-usb modules only figure 17: serial header matrix orbital lk204-7t-1u 11
2.4.2 optional internal usb header for usb modules only pin 1 gnd pin 2 d+ pin 3 d- pin 4 vcc figure 18: optional internal usb header 2.5 protocol select jumpers the protocol select jumpers , pictured below in figure 19, provide the means necessary to toggle the display module between rs-232, ttl and i 2 c protocols. as a default for the non-usb module, the jumpers are set to rs-232 mode with zero ohm resistors on the 232 jumpe rs. in order to place the display module in i 2 c mode you must ?rst remove the zero ohm resistors from the 232 jumpers and then solder the resistors on to the i 2 c jumpers, or bridge solder across the pads. the display will now be in i 2 c mode and have a default slave address of 0x50 unless the i 2 c address has been changed. similarly, in order to change the display to ttl mode, simply remove the zero ohm resistors fro m the 232 or i 2 c jumpers and solder them to the ttl jumpers. although rs-232, usb, ttl and i 2 c are present, only 232/ttl/i 2 c are for use in the non-usb module. for the usb module operation the usb jumpers must be in place. there are three, one is for power. if you wish to power it up from a non-usb source, y ou must remove one of the jumpers. the jumper to remove is the rightmost usb jumper as seen if figure 20. matrix orbital lk204-7t-1u 12
figure 19: protocol-select-jumpers for lk204-7t-1u non-u sb figure 20: protocol-select-jumpers for lk204-7t-1u usb 2.6 general purpose outputs a unique feature of the lk204-7t-1u is the ability to control relays and other external devices using three general purpose outputs, which can provide up to 10 ma o f current and +3.3vdc from the positive side of each gpo. this is limited by a 240 ohm resistor which is located directly above the positive pin as pictured below in figure [?g:general-purpose-output]. if the device, which is being driven by a gpo, requires a relatively high current (such as a relay) and has a n internal resistance of its own greater than 250 ohms, then the 240 ohm resistor may be removed and replaced wi th a jumper. matrix orbital lk204-7t-1u 13
vcc 3.3vdc gpo 7 0vdc, 10ma gpo 8 0vdc, 10ma gpo 9 0vdc, 10ma figure 21: general purpose output warning if connecting a relay, be sure that it is fully clamped using a diode and capacitor in order to absorb any electro-motive f orce (emf) which will be generated. 2.7 manual override the manual override is provided to allow the lk204-7t-1u to be reset to some of the factory defaults. this can be particularly helpful if the display module has be en set to an unknown baud rate or i 2 c slave address and you are no longer able to communicate with it. if y ou wish to return the module to its default settings you must press the bottom left button at power up. pl ease see ?gure 22. matrix orbital lk204-7t-1u 14
table 2: default values contrast 128 backlight 255 baud rate 19.2 kbps i 2 c slave address 0x50 data lock false rs232autotransmitdata true figure 22: manual override button note the display module will revert back to the old settings once t urned off, unless the settings are saved. 3 troubleshooting 3.1 the display does not turn on when power is applied. ? first, you will want to make sure that you are using the correc t power connector. standard ?oppy drive power cables from your pc power supply may ?t on the power/dat a connector however they do not have the correct pinout as can be seen in figure ?? . matrix orbital supplies power cable adapters for connecting to a pc, which can be found in the accessories sect ion on page 2. ? the next step is to check the power cable which you are using fo r continuity. if you don't have an ohm meter, try using a different power cable, if this does not help try using a different power supply. ? the last step will be to check the power / data connector on the lk204-7t-1u. if the power / data connector has become loose, or you are unable to resolve the issue, plea se contact matrix orbital see 14.6 on page 62 for contact information. matrix orbital lk204-7t-1u 15
3.2 the display module is not communicating. ? first, check the communication cable for continuity. if you don't have an ohm meter, try using a different communication cable. if you are using a pc try usin g a different com port. ? second, please ensure that the display module is set to commu nicate on the protocol that you are using, by checking the protocol select jumpers. to change the protocol used by the display module see section 2.5 on page 12. ? third, ensure that the host system and display module are bot h communicating on the same baud rate. the default baud rate for the display module is 19200 bps. ? if you are communicating to the display via i 2 c please ensure that the data is being sent to the correct address. the default slave address for the display module is 0x50. note i 2 c communication will always require pull up resistors. ? finally, you may reset the display to it's default settings u sing the manual override key, see sec- tion 2.7 on page 14. 3.3 the display module is communicating, however text canno t be displayed. ? a common cause may be that the contrast settings have been set to low. the solution to this problem is to adjust the contrast settings, the default setting that will work in most environments is 128 note optimal contrast settings may vary according to factors suc h as temperature, view- ing angle and lighting conditions. if you are unable to resolve any issue please contact matrix o rbital. see 14.6 on page 62 for contact information. 4 communications 4.1 introduction the commands listed in this chapter describe how to con?gure data ?ow on the lk204-7t-1u. 4.1.1 i 2 c communication summary the lk204-7t-1u is capable of communicating at 100 khz in i 2 c mode, with 127 units addressable on a single i 2 c communication line. however, in order to communicate via i 2 c you must ?rst ensure that pull up resistors, with a nominal value of 1k to 10k, are place d on the scl and sda communication lines coming from pins two and three of the data / power connector re spectively. data responses by the module are automatically output via rs232, in case the host will be q uerying the module, it is necessary for the host matrix orbital lk204-7t-1u 16
to inform the module that its responses are to be output via i 2 c. this can be done by sending command 254 /160 / 0 to turn off auto transmission of data in rs232. thi s will keep the data in the buffer until the master clocks a read of the slave. the i 2 c data lines operate at 5v normally or 3.3v for -1u style units . the lk204-7t-1u uses 8-bit addressing, with the 8th or least signi?cant bit (lsb) bit designated as the read/write bit, a 0 designates a write address and a 1 designa tes a read address. the default read address of the display module will be 0x51, whereas the write address is 0x50 by default. this address may be changed by using cmd 254 / 51 /
. the lk204-7t-1u should only be sent addresses that are even (lsb is 0). when the i 2 c master wishes to write to the display, the effective addres s is $50 (0101 0000) , since the lsb has to be 0 for an i 2 c master write. when the i 2 c master wishes to read the lk204-7t-1u, the effective address is $51 (0101 0001), since the lsb has to be 1 for an i 2 c master read. if we take a standard phillips 7 bit address of $45 (100 0101), matrix orbital's lk204-7t-1u would describe this phillips i 2 c address as $8a (1000 1010). the read address would be $8b (10 00 1011). the unit does not respond to general call address ($00). when communicating in i 2 c the lk204-7t-1u will send an ack on the 9th clock cycle when a ddressed. when writing to the display module, the display will respond with a ack when the write has successfully been completed. however if the buffer has been ?lled, or the m odule is too busy processing data it will respond with a nak. when performing a multiple byte read with in one i 2 c transaction, each byte read from the slave should be followed by an ack to indicate that the mas ter still needs data, and a nak to indicate that the transmission is over. the lk204-7t-1u has some speed limitations, especially whe n run in i 2 c mode. here are some consid- erations when writing i 2 c code: * to be able to read the replies of query commands (eg. cmds 54, 55) the following command must be sent (only needs to be sent once, so this can be done somewhere in init): 254 / 160 / 0 this command puts the reply data in the i 2 c output buffer instead of the rs232 output buffer. please no te that due to a 16 byte output buffer, query commands that reply with more than 16 by tes cannot be read (eg cmd get filesystem directory) * 3ms delay between the read commands * 625us delay in between data bytes within a transaction is ne cessary * 375us between transactions is necessary note these delays are consrevative, and may be decreased based on performance 4.1.2 i 2 c transaction example the typical i 2 c transaction contains four parts: the start sequence, addr essing, information, and stop sequence. to begin a transaction the data line, sda, must tog gle from high to low while the clock line, scl, is high. next, the display must be addressed using a one byte h exadecimal value, the default to write to the unit is 0x50, while read is 0x51. then information can be sent to the unit; even when reading, a command must ?rst be sent to let the unit know what type of information it is required to return. after each bit is sent, the display will issue an ack or nack as described above. fina lly, when communication is complete, the transaction is ended by toggling the data line from low to hig h while the clock line is high. an example of the use of this algorithm to write a simple hello message ca n be seen in 3. matrix orbital lk204-7t-1u 17
table 3: i 2 c transaction algorithm start toggle sda high to low address 0x50 information 0x48 0x45 0x4c 0x4c 0x4f stop toggle sda low to high 4.1.3 serial communication in addition to being able to communicate via i 2 c the lk204-7t-1u communicates natively through the rs-232 protocol at at a default baud rate of 19,200 bps and is c apable of standard baud rates from 9600 to 115,200 bps. furthermore the lk204-7t-1u is also capable of reproducing any non-standard baud rate in between using values entered into our baud rate generation a lgorithm and set through command 164 (0xa4). the display module communicates at standard voltage levels of -30v to +30v or at ttl levels of 0 to +5v by setting the protocol select jumpers to ttl. 4.1.4 usb communication the lk204-7t-1u is a usb device that offers identical commun ication protocol as the serial comport. capable of communicating via a usb interface. the usb commun ications are identical to the serial commu- nications. communication is via a virtual com port, which is created in the operating system by the drivers necessary to install the usb display. the lk204-7t-1u commu nicating via usb is capable of baud rates of 19,200 bps to 115,200 bps. other baud rates are subject to the limitation of the virtual com port driver. for further information regarding supported operating system s, and driver limitations please contact technical support. 4.2 changing the i 2 c slave address syntax hexadecimal 0xfe 0x33 [adr] decimal 254 51 [adr] ascii 254 3 [adr] parameters parameter length description adr 1 the new i 2 c write address (0x00 - 0xff). matrix orbital lk204-7t-1u 18
description this command sets the i 2 c write address of the module between 0x00 and 0xff. the i 2 c write address must be an even number and the read address is automatically set to one higher. for example if th e i 2 c write address is set to 0x50, then the read address is 0x51. note the change in address is immediate. remembered always default 0x50 4.3 changing the baud rate syntax hexadecimal 0xfe 0x39 [speed] decimal 254 57 [speed] ascii 254 9 [speed] parameters parameter length description speed 1 hex value corresponding to a baud rate. description this command sets the rs-232 port to the speci?e d [speed]. the change takes place immediately. [speed] is a single byte specifyin g the desired port speed. valid speeds are shown in the table below. the dis play module can be manually reset to 19,200 baud in the event of an e rror during transmission, including transmitting a value not li sted below, by setting the manual override jumper during power up. however , it should be noted that this command will be ignored until the manual ov erride jumper is removed again. hex value baud rate 53 1200 29 2400 cf 4800 67 9600 33 19200 22 28800 19 38400 10 57600 8 115200 remembered always default 19,200 bps 4.4 setting a non-standard baud rate matrix orbital lk204-7t-1u 19
syntax hexadecimal 0xfe 0xa4 [speed] decimal 254 164 [speed] parameters parameter length description speed 2 inputed lsb msb from baud rate formula (12-2047). description this command sets the rs-232 port to a non-stand ard baud rate. the command accepts a two byte parameter that goes directly into the modules baud generator. use the formula, speed = crystalspeed 8 desiredbaud ? 1 to calculate the [speed] for any baud rate setting. the speed ca n be anywhere from 12 to 2047 which corresponds to a baud range of 9 77 to 153,800 baud. setting the baud rate out of this range could ca use the display to stop working properly and require the manual over ride jumper to be set. remembered always examples crystal speed 16 mhz desired baud 13,500 crystal speed 8 mhz desired baud 13,500 speed = crystalspeed 8 ? desiredbaud ? 1 speed = 74 . 07 ? 1 speed = 8 , 000 , 000 8 ? 13 , 500 ? 1 speed = 73 . 07 ? lsb = 0x4a (rounded) ? msb = 0x00 ? inteded baud rate: 13,500 baud actual baud rate: 8 , 000 , 000 8 ( 73 + 1 ) = 13,675 percent difference: 1.8% notes ? results from the formula are rounded down to the nearest whol e number (i.e 73.07 = 73). ? this formula becomes less acurate as baud rates increase, du e to rounding. ? place the speed result backwards into the formula to receive the actual baud rate. ( baud = crystalspeed 8 ( speed + 1 ) ) ? the actual baud rate must be within 3% of the intended baud rat e for the device to communicate. matrix orbital lk204-7t-1u 20
5 text 5.1 introduction the lk204-7t-1u is an intelligent display module, designed to reduce the amount of code necessary to begin displaying data. this means that it is able to display a ll ascii formated characters and strings that are sent to it, which are de?ned in the current character set. the display module will begin displaying text at the top left corner of the display area, known as home, and contin ue to print to the display as if it was a page on a typewriter. when the text reaches the bottom right row, it i s able to automatically scroll all of the lines up and continue to display text, with the auto scroll option set to on. 5.1.1 character set figure 23: character set matrix orbital lk204-7t-1u 21
5.1.2 control characters in addition to a full text set, the lk204-7t-1u display suppo rts the following ascii control characters: 0x08 backspace 0x0c clear screen / new page 0x0d carriage return 0x0a line feed / new line 5.2 auto scroll on syntax hexadecimal 0xfe 0x51 decimal 254 81 ascii 254 q description when auto scrolling is on, it causes the display to shift the entire display's contents up to make room for a new line of text when t he text reaches the end of the last row. remembered yes default on 5.3 auto scroll off syntax hexadecimal 0xfe 0x52 decimal 254 82 ascii 254 r description when auto scrolling is disabled the text will wr ap to the top left corner of the display area when the text reaches the end of last row. remembered yes 5.4 clear screen syntax hexadecimal 0xfe 0x58 decimal 254 88 ascii 254 x description this command will immediately clear all of the c ontents of the display. remembered no matrix orbital lk204-7t-1u 22
5.5 changing the startup screen syntax hexadecimal 0xfe 0x40 decimal 254 64 ascii 254 @ description in order to change the text that is displayed by t he lk204-7t-1u when it starts up simply send the command bytes 254 64 followed by t he characters that you wish to display, starting from the top le ft. this command will automatically line wrap the characters that ar e sent to it. remembered yes 5.6 set auto line wrap on syntax hexadecimal 0xfe 0x43 decimal 254 67 ascii 254 c description enabling auto line wrap will allow the cursor to automatically wrap over to the next line when the current line is full. note line wraps may occur in the middle of a word. remembered yes 5.7 set auto line wrap off syntax hexadecimal 0xfe 0x44 decimal 254 68 ascii 254 d description disabling auto line wrap will allow you to chang e the line con?guration. the normally sequentional progression beco mes an alternating pattern. rather than moving from line 1 to 2 to 3, the display will write from line 1 to 3 to 2. for a two line display, this mea ns that a row's worth of characters written between the ?rst and secon d lines or after the second will not be displayed on the screen or wrappe d. the four line models will see only an alteration in line ?ow. remembered yes matrix orbital lk204-7t-1u 23
5.8 set cursor position syntax hexadecimal 0xfe 0x47 [col] [row] decimal 254 71 [col] [row] ascii 254 g [col] [row] parameters parameter length description col 1 column row 1 row description this command will allow you to manually set the c ursor position, which controls the text insertion point, by specifying the [col] a nd [row] of the new proposed cursor position. note if the cursor position is set past the end of a line it will wrap to the beginning of the next line. remembered no 5.9 go home syntax hexadecimal 0xfe 0x48 decimal 254 72 ascii 254 h description this command will return the cursor to the top le ft corner of the display area, identi?ed as row one, column one. remembered no 5.10 move cursor back syntax hexadecimal 0xfe 0x4c decimal 254 76 ascii 254 l description this command will move the cursor back one space . if this command is sent when the cursor is at the home position the cursor will wr ap to the last row / column position if line wrap is on. sending this com mand will not effect the text displayed on the module, however any char acters that are sent will over write the current characters that are bein g displayed. remembered no matrix orbital lk204-7t-1u 24
5.11 move cursor forward syntax hexadecimal 0xfe 0x4d decimal 254 77 ascii 254 m description this command will move the cursor forward one sp ace. if this command is sent when the cursor is at the bottom right positio n the cursor will wrap back to the home position if line wrap is on. s ending this command will not effect the text displayed on the module , however any characters that are sent will over write the current char acters that are being displayed. remembered no 5.12 underline cursor on syntax hexadecimal 0xfe 0x4a decimal 254 74 ascii 254 j description this command will cause the lk204-7t-1u to disp lay an underline cursor at the current text insertion point. remembered yes 5.13 underline cursor off syntax hexadecimal 0xfe 0x4b decimal 254 75 ascii 254 k description this command will turn the the underline cursor off. remembered yes 5.14 blinking block cursor on syntax hexadecimal 0xfe 0x53 decimal 254 83 ascii 254 s description this command will cause the lk204-7t-1u to disp lay a block cursor at the current text insertion point. matrix orbital lk204-7t-1u 25
remembered yes 5.15 blinking block cursor off syntax hexadecimal 0xfe 0x54 decimal 254 84 ascii 254 t description this command will turn the block cursor off. remembered yes 6 special characters 6.1 introduction the lk204-7t-1u has the ability to create four different set s of eight custom characters and save them to internal banks of memory. each set of eight can be recalled from memory at any time, and selected characters can be written to the display screen. characters and sets can be created at any time, saved for later use, and displayed to the screen through the intuitive comma nd structure described below. 6.2 creating a custom character syntax hexadecimal 0xfe 0x4e [refid] [data] decimal 254 78 [refid] [data] ascii 254 n [refid] [data] parameters parameter length description refid 1 character reference id (0-7). data 8 character data. matrix orbital lk204-7t-1u 26
description the lk204-7t-1u allows for upta to eight custom de?ned characters to be added onto the the character set. a custom character is a ?v e by eight pixel matrix with each row represented by a byte value. for ex ample: custom character 'h' decimal hex 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 1 1 0 22 0x16 1 1 0 0 1 25 0x19 1 0 0 0 1 17 0x11 1 0 0 0 1 17 0x11 each bit value of one, in the table, represents an on pixel, wh ereas a value of zero represents a pixel that is turned off. therefore in or der to de?ne custom character 'h' you would send the command byte pre?x 25 4 fol- lowed by the command 78. next, you will have to select the memo ry location in which you wish to save the character in. the avail able mem- ory locations for this command are zero through to seven. aft er sending the memory location, or [refid], you may then send the eight b yte custom character data in sequence from the top to the bottom. once you have de?ned a custom character you may display it by s ending the display module the [refid]. for example if a custom chara cter was saved in position one, the command to display the custom char acter, at the current cursor position, would be simply to send the numb er one to the display module without quotes. remembered no 6.3 saving custom characters syntax hexadecimal 0xfe 0xc1 [bank] [id] [data] decimal 254 193 [bank] [id] [data] parameters parameter length description bank 1 memory bank to save to (0-4). id 1 character id (0-7) data 8 character de?nition matrix orbital lk204-7t-1u 27
description new to the lk204-7t-1u has added ?ve non-volati le memory banks for custom character storage. this is intended to allow you t o create your own custom bar graphs, medium/large numbers and startu p screen. however, each memory bank may be used to store a set of any eigh t custom characters; with the only provision being that memor y bank zero contains the characters that will be used in the startup scre en. by default the memory banks will be loaded as follows: [bank] description 0 startup screen characters. 1 horizontal bars 2 vertical bars 3 medium numbers 4 large numbers in order to save new custom characters into a memory bank, fol low the same process as you would for creating a custom character, se e sec- tion 6.2 on page 26, only use 254 193 [bank number] before send ing the [id] and character [data]. remembered yes 6.4 loading custom characters syntax hexadecimal 0xfe 0xc0 [bank] decimal 254 192 [bank] parameters parameter length description bank 1 memory bank to save to (0-4). description this command is used to load the custom characte rs into the volatile memory so that they may be used. if custom bar graph or number characters are stored in the memory banks, this command may b e used instead of initializing the bar graph / number. to use this co mmand send the command bytes followed by the [bank] that contains the cu stom character data that you want to retrieve. remembered no 6.5 save startup screen custom characters syntax hexadecimal 0xfe 0xc2 [refid] [data] decimal 254 194 [refid] [data] parameters parameter length description refid 1 character reference id (0-7). data 8 character data. matrix orbital lk204-7t-1u 28
description using this command you may create the custom cha racters. that will be stored in memory bank zero, which will be used in the startup s creen. for more information about creating custom characters see section 6.2 on page 26 . notes ? changes only take place once the power has been cycled. ? this command is the same as sending cmd 254 / 193 / 0 / [id] / [dat a] remembered yes 6.6 initialize medium number syntax hexadecimal 0xfe 0x6d decimal 254 109 ascii 254 m description this command will load the default medium numbe r characters into the volatile memory. if you have stored your own custom medium nu mbers, use the 'load custom characters' command to load your custom character data into the volatile memory. this command will a llow you to use the 'place medium numbers' command. remembered no 6.7 place medium numbers syntax hexadecimal 0xfe 0x6f [row] [col] [digit] decimal 254 111 [row] [col] [digit] ascii 254 o [row] [col] [digit] parameters parameter length description row 1 the row number. col 1 the column number. digit 1 medium number to place (0-9). description this command will place a medium number (two col umns high) at the [row] and [col] speci?ed. note medium numbers must be initialized before this command is ex ecuted. remembered no matrix orbital lk204-7t-1u 29
6.8 initialize large numbers syntax hexadecimal 0xfe 0x6e decimal 254 110 ascii 254 n description this command will load the default large number characters into the volatile memory. if you have stored your own custom large num bers, use the 'load custom characters' command instead to load you r custom character data into the volatile memory. this comman d will allow you to use the 'place large numbers' command. remembered no 6.9 place large number syntax hexadecimal 0xfe 0x23 [col] [digit] decimal 254 35 [col] [digit] ascii 254 # [col] [digit] parameters parameter length description col 1 the column number. digit 1 large number to place (0-9). description this command will place a large number (four col umns high) at the [row] and [col] speci?ed. note large numbers must be initialized before this command is exe cuted. remembered no 6.10 initialize horizontal bar syntax hexadecimal 0xfe 0x68 decimal 254 104 ascii 254 h description this command will load the default horizontal b ar characters into the volatile memory. if you have stored your own custom horizont al bar data, use the 'load custom characters' command instead to lo ad your custom bar data into the volatile memory. this command will a llow you to use the 'place horizontal bar' command. remembered no matrix orbital lk204-7t-1u 30
6.11 place horizontal bar graph syntax hexadecimal 0xfe 0x7c [col] [row] [dir] [length] decimal 254 124 [col] [row] [dir] [length] ascii 254 | [col] [row] [dir] [length] parameters parameter length description col 1 the column number. row 1 the row number. dir 1 the direction of the bar data (0 or 1). length 1 the length of the bar data. description this command will place a bar graph at [row], [co lumn]. a [dir] value of zero will cause the bar to go right, and one will cause the ba r to go left. the [length] is the size in pixels of the bar graph. notes ? horizontal bars must be initialized before this command is e xecuted. ? bar graphs may be one directional only. remembered no 6.12 initialize narrow vertical bar syntax hexadecimal 0xfe 0x73 decimal 254 115 ascii 254 s description this command will load the narrow vertical bar c haracters into the volatile memory. if you have stored your own custom vertical bar data, use the 'load custom characters' command instead to load you r custom bar data into the volatile memory. this command will a llow you to use the 'place vertical bar' command. note narrow bars have a width of two pixels. remembered no 6.13 initialize wide vertical bar matrix orbital lk204-7t-1u 31
syntax hexadecimal 0xfe 0x76 decimal 254 118 ascii 254 v description this command will load the wide vertical bar cha racters into the volatile memory. if you have stored your own custom vertical bar data, use the 'load custom characters' command instead to load your custo m bar data into the volatile memory. this command will allow you to use the 'place vertical bar' command. note wide bars have a width of ?ve pixels. remembered no 6.14 place vertical bar syntax hexadecimal 0xfe 0x3d [column] [length] decimal 254 61 [column] [length] ascii 254 = [column] [length] parameters parameter length description column 1 the column number. length 1 the length of the bar data. description this command will place a bar graph at the speci? ed [column] with the speci?ed [length]. the [length] is the size in pixels of the b ar graph. notes ? a vertical bar style must be initialized before this command is executed. ? bar graphs may be one directional only. remembered no 7 general purpose output 7.1 introduction the lk204-7t-1u has 6 general purpose outputs which are conn ected to 3 tri-colour leds. the leds consist of red, green and orange-yellow colours. the leds ar e hence software controlled with functions to turn them on/off. a pair of gpos control one led. gpo1 and gp o2 control led1, gpo3 and gpo4 control led2 and gpo5 and gpo6 control led3. the tables below illustrate the relation. 0 is off, 1 is on. for example to turn the led 1 to green gpo1 must be turned on and gpo2 must be turned off. matrix orbital lk204-7t-1u 32
figure 24: glk19264-7t-1u leds table 34: led 1 - top gpo2 gpo1 yellow 0 0 green 0 1 red 1 0 off 1 1 table 35: led 2 - middle gpo4 gpo3 yellow 0 0 green 0 1 red 1 0 off 1 1 table 36: led 3 - bottom gpo6 gpo5 yellow 0 0 green 0 1 red 1 0 off 1 1 matrix orbital lk204-7t-1u 33
7.2 general purpose output off syntax hexadecimal 0xfe 0x56 [num] decimal 254 86 [num] ascii 254 v [num] parameters parameter length description num 1 gpo number. description this command turns off general purpose output [ num]. note off means that the output is pulled high. remembered yes 7.3 general purpose output on syntax hexadecimal 0xfe 0x57 [num] decimal 254 87 [num] ascii 254 w [num] parameters parameter length description num 1 gpo number. description this command turns on general purpose output [n um]. the standard gpo's on the lk204-7t-1u output 20ma of current at 5v. note on means the output is pulled low. remembered yes 7.4 set startup gpo state syntax hexadecimal 0xfe 0xc3 [num] [state] decimal 254 195 [num] [state] parameters parameter length description num 1 gpo number. state 1 startup state (0: off, 1: on) matrix orbital lk204-7t-1u 34
description this command will set the startup state for the g po on the next power up. a value of one will cause the gpo to be off on the next startu p while a value of one will cause the gpo to be on. note this command does not affect the current state of the gpo. remembered always 8 dallas 1-wire 8.1 introduction another convenient feature of the lk204-7t-1u is that it pro vides a dallas 1-wire interface in order to readily communicate with up to thirty two 1-wire devices on a single bus. 1-wire communication is begun by discovering the address of the device that you wish to comm unicate with. to do this you must send the search for a 1-wire device' command. after you have establi shed the address of the device that you wish to communicate with, you may begin a transaction with the dev ice 8.2 search for a 1-wire device syntax hexadecimal 0xfe 0xc8 0x2 decimal 254 200 2 matrix orbital lk204-7t-1u 35
description this command will allow you to begin communicat ing with the devices on the 1-wire bus by returning a packet containing device inf ormation for each 1-wire device on the bus in the form of: search return packet offset (bytes) offset (bytes) description 0 2 0x232a preamble 2 1 0x8a packet is 10 bytes long, an- other address will follow 0x0a packet is 10 bytes long, this is the last address 3 1 0x31 - 1-wire packet type 4 1 error code (0x00 for success) 5 8 1-wire address 13 1 crc8 0x00 means the last address was valid remembered no 8.3 dallas 1-wire transaction syntax hexadecimal 0xfe 0xc8 0x1 [?ags] [sndbits] [rcvbits] [data ] decimal 254 200 1 [?ags] [sndbits] [rcvbits] [data] parameters parameter length description ?ags 1 flags to control optional components of the transaction. sndbits 1 the number of bits you will be transmitting on the bus. rcvbits 1 the number of bits you will be reading on the bus. data variable data to be transmitted, lsb to msb. matrix orbital lk204-7t-1u 36
description this command will perform a single transaction on the 1-wire bus in this order: 1. bus reset. 2. transmit data onto the bus. 3. receive data from the bus. the number of bits to be transmitted and read must be speci?ed for this command to be successful. note to determine what functions the device will respond to, cons ult the devices' data sheet. 1-wire flags bit description 7 6 unused 5 (0 for future compatibility) 4 3 add a crc8 to the end of the transmitted data 2 (0 for future compatibility) 1 assume last received byte is a crc8 and validate it 0 reset bus before transaction 1-wire error codes code description 0x00 success 0x01 unknown 1-wire command 0x02 no devices on the bus 0x03 fatal search error remembered no 9 keypad 9.1 introduction the lk204-7t-1usupports up to a 7 key, matrix style, embedde d keypad and may be con?gured to allow key presses to be automatically transmitted via rs-232 or po lled through i 2 c. the lk204-7t-1u also allows for auto-repeating key presses. the keypad is scanned whene ver a key is pressed;there is no continuous key scan. this means that key presses are dealt with immediately without any appreciable latency. this also prevents electrical noise which is often caused by continuo us key scans. the keypad is tactile with seven keys. the value of each key is listed in the table below. matrix orbital lk204-7t-1u 37
table 42: keypad values up arrow 0x42 down arrow 0x48 left arrow 0x44 right arrow 0x43 center 0x45 top left 0x41 bottom left 0x47 note please note that keypads may be laid out in a different patter n. if this is the case, the user will need to interpret the key codes different ly. also included are two extra pins on each end of the connector to be used for ground strappi ng. this can be used in conjunction with your keypad if a ground strap connection is required or if a common ground connection is needed. 9.2 auto transmit key presses on syntax hexadecimal 0xfe 0x41 decimal 254 65 ascii 254 a description in this mode, all key presses are sent immediate ly to the host system without the use of the poll keypad command. this is the defaul t mode on power up. remembered yes default on 9.3 auto transmit key presses off syntax hexadecimal 0xfe 0x4f decimal 254 79 ascii 254 o description in this mode, up to 10 key presses are buffered un til the unit is polled by the host system, via the poll keypad command 254 38. issuing t his command places the unit in polled mode. remembered yes matrix orbital lk204-7t-1u 38
9.4 poll key press syntax hexadecimal 0xfe 0x26 decimal 254 38 ascii 254 & description this command returns any buffered key presses v ia the serial interface. the host system must be set up to receive key codes. when the di splay receives this command, it will immediately return any buffe red key presses which may have not been read already. if there is more than one key press buffered, then the high order bit (msb) of the retur ned key code will be set (1). if this is the only buffered key press, th en the msb will be cleared (0). if there are no buffered key presses, the n the returned code will be 0x00. please note that to make use of thi s command, the auto transmit key presses mode should be off. remembered no 9.5 clear key buffer syntax hexadecimal 0xfe 0x45 decimal 254 69 ascii 254 e description this command clears any unread key presses. in a menu application, if the user presses a key which changes the menu context, any fol lowing key presses may be inaccurate and can be cleared out of the buf fer between menu changes to prevent jumping around the menu tree . it may also be used, in effect, to reset the keypad in case the host ap plication resets for whatever reason. remembered no 9.6 set debounce time syntax hexadecimal 0xfe 0x55 [time] decimal 254 85 [time] ascii 254 u [time] parameters parameter length description time 1 debounce time in increments of 6.554ms (0 - 255). matrix orbital lk204-7t-1u 39
description this command sets the time between key press and key read. all key types with the exception of latched piezo switches will 'bou nce' for a varying time, depending on their physical characteristics . the [time] value is in increments of 6.554ms. the default debounce time for the module is 8 (about 52ms), which is adequate for most membrane keypads. remembered yes default 8 9.7 set auto repeat mode syntax hexadecimal 0xfe 0x7e [mode] decimal 254 126 [mode] ascii 254 ~ [mode] parameters parameter length description mode 1 auto repeat mode (0: resend key , 1: key up/down) description two auto repeat modes are available and are set v ia the same command: ? resend key mode: 0x00 ? key up/down mode: 0x01 resend key mode this mode is similar to the action of a keyboard on a pc. in this mode, when a key is held down, the key code is transmitted immediately followed by a 1/2 second delay. aft er this delay, key codes will be sent via the rs-232 interface at a rate of about 5 codes per second. this mode has no effect if polling or if using the i 2 c interface. key up/down mode this mode may be used when the typematic parameters of the resend key code mode are unacceptable or if the unit is being operated in polled mode. the host system detects the press of a key and simulates an auto repeat inside the host system until the key release is detected. in this mode, w hen a key is held down, the key code is transmitted immediately and no other codes will be sent until the key is released. on the rele ase of the key, the key release code transmitted will be a value equa l to the key down code plus 20 hex. remembered yes matrix orbital lk204-7t-1u 40
examples when the key code associated with key 'p' (0x50) is p ressed, the release code is 'p' (0x70). in rs-232 polled mode or via the i 2 c, the key down / key up codes are used; however, the user should be care ful of timing details. if the poll rate is slower than the simulated auto-repeat it is possible that polling for a key up code will be delayed long enough for an unwanted key repeat to be generated. 9.8 auto repeat mode off syntax hexadecimal 0xfe 0x60 decimal 254 96 ascii 254 ` description this command turns auto repeat mode off. see set auto repeat mode. remembered no 9.9 assign keypad codes syntax hexadecimal 0xfe 0xd5 [kdown] [kup] decimal 254 213 [kdown] [kup] parameters parameter length description kdown 9 key down codes kup 9 key up codes matrix orbital lk204-7t-1u 41
description this command will allow you to reassign the key c odes that correspond to the key presses on the matrix style key pad. the ?rst 9 bytes that are transmitted will be used for the key down codes and the next 9 b ytes that are transmitted will be used for the key up codes. for the above diagrams the mapping is as follows: row 1, column 1 = byte 1 r1, c2 = byte 2 r1, c3 = byte 3 r2, c1 = byte 4 r2, c2 = byte 5 r2, c3 = byte 6 r3, c1 = byte7 r3, c2 = byte 8 r3, c3 = byte 9 note * not mapped to a physical key on the attached keypad. remembered always 9.10 keypad backlight off syntax hexadecimal 0xfe 0x9b decimal 254 155 description this command turns the keypad backlight off. remembered yes 9.11 set keypad brightness matrix orbital lk204-7t-1u 42
syntax hexadecimal 0xfe 0x9c [brightness] decimal 254 156 [brightness] parameters parameter length description brightness 1 keypad brightness setting (0 to 255). description this command sets the keypad [brightness]. if t he remember function is on, this command acts the same as 'set and save keypad brightn ess'. remembered yes default 255 9.12 set and save keypad brightness syntax hexadecimal 0xfe 0x9d [brightness] decimal 254 157 [brightness] parameters parameter length description brightness 1 keypad brightness setting (0 to 255). description this command sets and saves the keypad [brightn ess] as default. remembered always default 255 10 display functions 10.1 introduction the lk204-7t-1u employs software controlled display setti ngs, which allow for control over, clearing the screen, changing the brightness and contrast or setting timers for turning it on or off. the combination of these allow you complete software control over your displ ay's appearance. 10.2 display on syntax hexadecimal 0xfe 0x42 [min] decimal 254 66 [min] ascii 254 b [min] parameters parameter length description min 1 minutes before turning the display on (0 to 90). matrix orbital lk204-7t-1u 43
description this command turns the backlight on after the [m inutes] timer has expired, with a ninety minute maximum timer. a time of 0 speci ?es that the backlight should turn on immediately and stay on. when th is command is sent while the remember function is on, the timer w ill reset and begin after power up. remembered yes default 0 10.3 display off syntax hexadecimal 0xfe 0x46 decimal 254 70 ascii 254 f description this command turns the backlight off immediate ly. the backlight will remain off until a 'display on' command has been received. remembered yes 10.4 set brightness syntax hexadecimal 0xfe 0x99 [brightness] decimal 254 153 [brightness] parameters parameter length description brightness 1 display brightness setting (0 to 255). description this command sets the display [brightness]. if the remember function is on, this command acts the same as 'set and save brightness'. remembered yes default 255 10.5 set and save brightness syntax hexadecimal 0xfe 0x98 [brightness] decimal 254 152 [brightness] parameters parameter length description brightness 1 backlight setting (0 to 255). description this command sets and saves the display [bright ness] as default. remembered always matrix orbital lk204-7t-1u 44
10.6 set backlight base colour syntax hexadecimal 0xfe 0x82 [red] [green] [blue] decimal 254 130 [red] [green] [blue] parameters parameter length description red 1 red brightness (0 to 255). green 1 green brightness (0 to 255). blue 1 blue brightness (0 to 255). description this command sets the colour of the backlight. a fter this command is set the set brightness commands will vary the intensity of th is colour. note this command is only valid on displays with tri-colour backl ights. remembered always default 255, 255, 255 (white) 10.7 set contrast syntax hexadecimal 0xfe 0x50 [contrast] decimal 254 80 [contrast] ascii 254 p [contrast] parameters parameter length description contrast 1 contrast value (0 to 255). description this command sets the display's contrast to [co ntrast], where [contrast] is a value between 0x00 and 0xff (between 0 to 255). lower valu es cause `on' elements in the display area to appear lighter, wh ile higher values cause `on' elements to appear darker. lighting and te mperature conditions will affect the actual value used for optimal vie wing. individual display modules will also differ slightly from e ach other in appearance. in addition, values for optimal viewing while t he display backlight is on may differ from values used when backlight is off. this command does not save the [contrast] value, and is lost a fter power down; but this command has the option of remembering the sett ings when issued with the remember function `on' . when this is the case, this command is the same as the set and save contrast command. note this command has only 32 levels for x-board based displays, m eaning eight contrast settings will have the same single effect. efectiv ely, values 0 through 7, 8 through 15, and so on will result in the same setting. remembered yes default 128 matrix orbital lk204-7t-1u 45
10.8 set and save contrast syntax hexadecimal 0xfe 0x91 [contrast] decimal 254 145 [contrast] parameters parameter length description contrast 1 contrast value (0 to 255). description this command sets the display's contrast to [co ntrast], where [contrast] is a value between 0x00 and 0xff (between 0 to 255). lower valu es cause `on' elements in the display area to appear lighter, wh ile higher values cause `on' elements to appear darker. lighting condi tions will affect the actual value used for optimal viewing. individua l display modules will also differ slightly from each other in appeara nce. in addition, values for optimal viewing while the display back light is on may differ from values used when backlight is off. note this command saves the [contrast] value so that it is not lost after power down. remembered yes default 128 11 data security 11.1 introduction ensuring that your lk204-7t-1u display's exactly what you w ant it to can be the difference between a projects success and failure. this is why we incorporate fea tures such as data lock into the lk204-7t-1u with this new feature you now are in control over of how and whe n settings will be changed so there is no need to worry about the module acting exactly like you expect ed it to because all the settings may be locked and remembered for the next power up. 11.2 set remember syntax hexadecimal 0xfe 0x93 [switch] decimal 254 147 [switch] parameters parameter length description switch 1 0: do not remember, 1: remember matrix orbital lk204-7t-1u 46
description this command allows you to switch the remember f unction on and off. to use the remember function, set remember to on, then set all of the settings that you wish to save, settings that are listed as 'r emember: yes' support being saved into the non-volatile memory. afte r you have set all of the commands that you wish to save, you may then cycl e the power and check the display settings to ensure that all the se ttings have been saved. if you wish to use remember again after cycling th e power, you must set it to on again. notes ? writing to non-volatile memory is time consuming and slows d own the operation of the display. ? non-volatile memory has a `write limit' and may only be chang ed approximately 100,000 times. remembered no default do not remember 11.3 data lock syntax hexadecimal 0xfe 0xca 0xf5 0xa0 [level] decimal 254 202 245 160 [level] parameters parameter length description level 1 sets the data lock level matrix orbital lk204-7t-1u 47
description paranoia allows you to lock the module from displaying infor mation, as well as enables the protection of the ?lesystem and module se ttings. each bit corresponds corresponds to a different lock level, while sending a zero will unlock your display as the following tabl es explains: bit data lock level description 0-2 reserved should be left 0 3 communication speed lock when this bit is set (1) the baud rate and i 2 c slave address are locked 4 setting lock when this bit is set (1) the display settings such as backlight, contrast and gpo settings are locked. (internal eeprom) 5 reserved should be left 0 6 command lock when this bit is set (1) all commands but commands 202/203 are locked. (cmd lock) 7 display lock when this bit is set (1) the module is locked from dis- playing any new informa- tion. (text lock) notes ? sending a new data lock level will override the previous data lock level. ? data lock levels may be combined. remembered always default 0 examples hex dec binary description 0x00 0 0 unlock 0x50 80 01010000 setting and command lock 11.4 set and save data lock syntax hexadecimal 0xfe 0xcb 0xf5 0xa0 [level] decimal 254 203 245 160 [level] matrix orbital lk204-7t-1u 48
parameters parameter length description level 1 sets the data lock level description this command will set and save the data lock leve l. see the data lock section for more information. remembered always default 0 11.5 write customer data syntax hexadecimal 0xfe 0x34 [data] decimal 254 52 [data] ascii 254 4 [data] parameters parameter length description data 16 writes the customer data description writes the customer data. 16 bytes of data can be saved in non-volatile memory. remembered no 11.6 read customer data syntax hexadecimal 0xfe 0x35 decimal 254 53 ascii 254 5 description reads whatever was written by write customer da ta. remembered no 12 miscellaneous 12.1 introduction this chapter covers the 'report version number' and 'read mo dule type' commands. these commands can be particularly useful to ?nd out more information about the display module before contacting technical support. 12.2 read version number matrix orbital lk204-7t-1u 49
syntax hexadecimal 0xfe 0x36 decimal 254 54 ascii 254 6 description this command will return a byte representing th e version of the module, see the following table as an example: hex value version number 0x19 version 1.9 0x57 version 5.7 remembered no 12.3 read module type syntax hexadecimal 0xfe 0x37 decimal 254 55 ascii 254 7 matrix orbital lk204-7t-1u 50
description this command will return a hex value correspond ing to the the model number of the module see the following table: hex product id hex product id 1 lcd0821 2 lcd2021 5 lcd2041 6 lcd4021 7 lcd4041 8 lk202-25 9 lk204-25 a lk404-55 b vfd2021 c vfd2041 d vfd4021 e vk202-25 f vk204-25 10 glc12232 13 glc24064 14 unused 15 glk24064-25 16 unused 21 unused 22 glk12232-25 23 unused 24 glk12232-25-sm 25 glk24064-16-1u-usb 26 glk24064-16-1u 27 glk19264-7t-1u-usb 28 glk12232-16 29 glk12232-16-sm 2a glk19264-7t-1u 2b lk204-7t-1u 2c lk204-7t-1u-usb 31 lk404-at 32 mos-av-162a 33 lk402-12 34 lk162-12 35 lk204-25pc 36 lk202-24-usb 37 vk202-24-usb 38 lk204-24-usb 39 vk204-24-usb 3a pk162-12 3b vk162-12 3c mos-ap-162a 3d pk202-25 3e mos-al-162a 3f mos-al-202a 40 mos-av-202a 41 mos-ap-202a 42 pk202-24-usb 43 mos-al-082 44 mos-al-204 45 mos-av-204 46 mos-al-402 47 mos-av-402 48 lk082-12 49 vk402-12 4a vk404-55 4b lk402-25 4c vk402-25 4d pk204-25 4e unused 4f mos 50 moi 51 xboard-s 52 xboard-i 53 mou 54 xboard-u 55 lk202-25-usb 56 vk202-25-usb 57 lk204-25-usb 58 vk204-25-usb 5b lk162-12-tc 5c unused 71 unused 72 glk240128-25 73 lk404-25 74 vk404-25 77 unused 78 glt320240 79 glt480282 7a glt240128 remembered no matrix orbital lk204-7t-1u 51
13 command summary 13.1 communications description syntax page changing the i 2 c slave address hexadecimal 0xfe 0x33 [adr] decimal 254 51 [adr] ascii 254 3 [adr] 18 changing the baud rate hexadecimal 0xfe 0x39 [speed] decimal 254 57 [speed] ascii 254 9 [speed] 19 setting a non-standard baud rate hexadecimal 0xfe 0xa4 [speed] decimal 254 164 [speed] 19 13.2 text description syntax page auto scroll on hexadecimal 0xfe 0x51 decimal 254 81 ascii 254 q 22 auto scroll off hexadecimal 0xfe 0x52 decimal 254 82 ascii 254 r 22 clear screen hexadecimal 0xfe 0x58 decimal 254 88 ascii 254 x 22 changing the startup screen hexadecimal 0xfe 0x40 decimal 254 64 ascii 254 @ 23 set auto line wrap on hexadecimal 0xfe 0x43 decimal 254 67 ascii 254 c 23 set auto line wrap off hexadecimal 0xfe 0x44 decimal 254 68 ascii 254 d 23 set cursor position hexadecimal 0xfe 0x47 [col] [row] decimal 254 71 [col] [row] ascii 254 g [col] [row] 24 go home hexadecimal 0xfe 0x48 decimal 254 72 ascii 254 h 24 matrix orbital lk204-7t-1u 52
description syntax page move cursor back hexadecimal 0xfe 0x4c decimal 254 76 ascii 254 l 24 move cursor forward hexadecimal 0xfe 0x4d decimal 254 77 ascii 254 m 25 underline cursor on hexadecimal 0xfe 0x4a decimal 254 74 ascii 254 j 25 underline cursor off hexadecimal 0xfe 0x4b decimal 254 75 ascii 254 k 25 blinking block cursor on hexadecimal 0xfe 0x53 decimal 254 83 ascii 254 s 25 blinking block cursor off hexadecimal 0xfe 0x54 decimal 254 84 ascii 254 t 26 13.3 special characters description syntax page creating a custom character hexadecimal 0xfe 0x4e [refid] [data] decimal 254 78 [refid] [data] ascii 254 n [refid] [data] 26 saving custom characters hexadecimal 0xfe 0xc1 [bank] [id] [data] decimal 254 193 [bank] [id] [data] 27 loading custom characters hexadecimal 0xfe 0xc0 [bank] decimal 254 192 [bank] 28 save startup screen custom characters hexadecimal 0xfe 0xc2 [refid] [data] decimal 254 194 [refid] [data] 28 initialize medium number hexadecimal 0xfe 0x6d decimal 254 109 ascii 254 m 29 place medium numbers hexadecimal 0xfe 0x6f [row] [col] [digit] decimal 254 111 [row] [col] [digit] ascii 254 o [row] [col] [digit] 29 initialize large numbers hexadecimal 0xfe 0x6e decimal 254 110 ascii 254 n 30 place large number hexadecimal 0xfe 0x23 [col] [digit] decimal 254 35 [col] [digit] ascii 254 # [col] [digit] 30 matrix orbital lk204-7t-1u 53
description syntax page initialize horizontal bar hexadecimal 0xfe 0x68 decimal 254 104 ascii 254 h 30 place horizontal bar graph hexadecimal 0xfe 0x7c [col] [row] [dir] [length] decimal 254 124 [col] [row] [dir] [length] ascii 254 | [col] [row] [dir] [length] 31 initialize narrow vertical bar hexadecimal 0xfe 0x73 decimal 254 115 ascii 254 s 31 initialize wide vertical bar hexadecimal 0xfe 0x76 decimal 254 118 ascii 254 v 31 place vertical bar hexadecimal 0xfe 0x3d [column] [length] decimal 254 61 [column] [length] ascii 254 = [column] [length] 32 13.4 general purpose output description syntax page general purpose output off hexadecimal 0xfe 0x56 [num] decimal 254 86 [num] ascii 254 v [num] 34 general purpose output on hexadecimal 0xfe 0x57 [num] decimal 254 87 [num] ascii 254 w [num] 34 set startup gpo state hexadecimal 0xfe 0xc3 [num] [state] decimal 254 195 [num] [state] 34 13.5 dallas 1-wire description syntax page search for a 1-wire device hexadecimal 0xfe 0xc8 0x2 decimal 254 200 2 35 dallas 1-wire transaction hexadecimal 0xfe 0xc8 0x1 [?ags] [sndbits] [rcvbits] [data ] decimal 254 200 1 [?ags] [sndbits] [rcvbits] [data] 36 13.6 keypad matrix orbital lk204-7t-1u 54
description syntax page auto transmit key presses on hexadecimal 0xfe 0x41 decimal 254 65 ascii 254 a 38 auto transmit key presses off hexadecimal 0xfe 0x4f decimal 254 79 ascii 254 o 38 poll key press hexadecimal 0xfe 0x26 decimal 254 38 ascii 254 & 39 clear key buffer hexadecimal 0xfe 0x45 decimal 254 69 ascii 254 e 39 set debounce time hexadecimal 0xfe 0x55 [time] decimal 254 85 [time] ascii 254 u [time] 39 set auto repeat mode hexadecimal 0xfe 0x7e [mode] decimal 254 126 [mode] ascii 254 ~ [mode] 40 auto repeat mode off hexadecimal 0xfe 0x60 decimal 254 96 ascii 254 ` 41 assign keypad codes hexadecimal 0xfe 0xd5 [kdown] [kup] decimal 254 213 [kdown] [kup] 41 keypad backlight off hexadecimal 0xfe 0x9b decimal 254 155 42 set keypad brightness hexadecimal 0xfe 0x9c [brightness] decimal 254 156 [brightness] 42 set and save keypad brightness hexadecimal 0xfe 0x9d [brightness] decimal 254 157 [brightness] 43 13.7 display functions description syntax page display on hexadecimal 0xfe 0x42 [min] decimal 254 66 [min] ascii 254 b [min] 43 display off hexadecimal 0xfe 0x46 decimal 254 70 ascii 254 f 44 set brightness hexadecimal 0xfe 0x99 [brightness] decimal 254 153 [brightness] 44 set and save brightness hexadecimal 0xfe 0x98 [brightness] decimal 254 152 [brightness] 44 set backlight base colour hexadecimal 0xfe 0x82 [red] [green] [blue] decimal 254 130 [red] [green] [blue] 45 matrix orbital lk204-7t-1u 55
description syntax page set contrast hexadecimal 0xfe 0x50 [contrast] decimal 254 80 [contrast] ascii 254 p [contrast] 45 set and save contrast hexadecimal 0xfe 0x91 [contrast] decimal 254 145 [contrast] 46 13.8 data security description syntax page set remember hexadecimal 0xfe 0x93 [switch] decimal 254 147 [switch] 46 data lock hexadecimal 0xfe 0xca 0xf5 0xa0 [level] decimal 254 202 245 160 [level] 47 set and save data lock hexadecimal 0xfe 0xcb 0xf5 0xa0 [level] decimal 254 203 245 160 [level] 48 write customer data hexadecimal 0xfe 0x34 [data] decimal 254 52 [data] ascii 254 4 [data] 49 read customer data hexadecimal 0xfe 0x35 decimal 254 53 ascii 254 5 49 13.9 miscellaneous description syntax page read version number hexadecimal 0xfe 0x36 decimal 254 54 ascii 254 6 49 read module type hexadecimal 0xfe 0x37 decimal 254 55 ascii 254 7 50 13.10 command by number command description page hex dec ascii 0x23 35 # place large number 30 0x26 38 & poll key press 39 0x33 51 3 changing the i 2 c slave address 18 0x34 52 4 write customer data 49 0x35 53 5 read customer data 49 matrix orbital lk204-7t-1u 56
command description page hex dec ascii 0x36 54 6 read version number 49 0x37 55 7 read module type 50 0x39 57 9 changing the baud rate 19 0x3d 61 = place vertical bar 32 0x40 64 @ changing the startup screen 23 0x41 65 a auto transmit key presses on 38 0x42 66 b display on 43 0x43 67 c set auto line wrap on 23 0x44 68 d set auto line wrap off 23 0x45 69 e clear key buffer 39 0x46 70 f display off 44 0x47 71 g set cursor position 24 0x48 72 h go home 24 0x4a 74 j underline cursor on 25 0x4b 75 k underline cursor off 25 0x4c 76 l move cursor back 24 0x4d 77 m move cursor forward 25 0x4e 78 n creating a custom character 26 0x4f 79 o auto transmit key presses off 38 0x50 80 p set contrast 45 0x51 81 q auto scroll on 22 0x52 82 r auto scroll off 22 0x53 83 s blinking block cursor on 25 0x54 84 t blinking block cursor off 26 0x55 85 u set debounce time 39 0x56 86 v general purpose output off 34 0x57 87 w general purpose output on 34 0x58 88 x clear screen 22 0x60 96 ` auto repeat mode off 41 0x68 104 h initialize horizontal bar 30 0x6d 109 m initialize medium number 29 0x6e 110 n initialize large numbers 30 0x6f 111 o place medium numbers 29 0x73 115 s initialize narrow vertical bar 31 0x76 118 v initialize wide vertical bar 31 0x7c 124 | place horizontal bar graph 31 0x7e 126 ~ set auto repeat mode 40 0x82 130 set backlight base colour 45 0x91 145 set and save contrast 46 0x93 147 set remember 46 0x98 152 set and save brightness 44 0x99 153 set brightness 44 0x9b 155 keypad backlight off 42 0x9c 156 set keypad brightness 42 matrix orbital lk204-7t-1u 57
command description page hex dec ascii 0x9d 157 set and save keypad brightness 43 0xa4 164 setting a non-standard baud rate 19 0xc0 192 loading custom characters 28 0xc1 193 saving custom characters 27 0xc2 194 save startup screen custom characters 28 0xc3 195 set startup gpo state 34 0xc8 200 dallas 1-wire transaction 36 0xca 202 data lock 47 14 appendix 14.1 speci?cations 14.1.1 environmental table 78: environmental speci?cations standard temperature extended temperature operating temperature 0 ? c to +50 ? c -20 ? c to +70 ? c storage temperature -20 ? c to +70 ? c -30 ? c to +80 ? c operating relative humidity 90% max non-condensing vibration (operating) 4.9 m/s 2 xyz directions vibration (non-operating) 19.6 m/s 2 xyz directions shock (operating) 29.4 m/s 2 xyz directions shock (non-operating) 490 m/s 2 xyz directions 14.1.2 electrical table 79: electrical speci?cations standard -lv supply voltage +5vdc 0.25v +3.3vdc 0.25v non-usb minimum current 60ma typical usb minimum current 65ma typical backlight on (yg) add 100 ma (160/165ma) typical backlight on (tci) add 200ma (260/265ma) typical backlight on (gw & wb) add 50ma (110/115ma) typical matrix orbital lk204-7t-1u 58
14.2 optical characteristics table 80: optical characteristics character x lines 20 columns x 4 rows module size 142.0 mm x 38.0 mm x 29.0 mm character size 5.2 mm x 3.9 mm display size 82.00 mm x 28.40 mm led backlight half-life (yg) 50,000 hours led backlight half-life (tci red and green) 20,000 hours led backlight half-life (gw, wb & tci blue) 10,000 hours note to prolong life, it is recommended that the backlight be turn ed off when the display is not in use. 14.3 physical layout matrix orbital lk204-7t-1u 59
figure 25: physical diagram matrix orbital lk204-7t-1u 60
note autocad version is downloadable from the matrix orbital man ual download lo- cation. 14.4 ordering information l k 20 4 -7t -1u -usb -tci -e 1 2 3 4 5 6 7 8 9 10 table 81: part numbering scheme # description options 1 screen type l: liquid crystal display 2 input interface k: tactile keypad 3 width 20: twenty character columns 4 height 4: four character rows 5 keypad buttons -7t: seven integrated tactile keys 6 form factor -1u: fits a 1u opening 7 protocol np: standard rs232/ttl/i 2 c -usb: universal serial bus only 8 color (text/background) -yg: grey/yellow-green -gw: grey/white -wb: white/blue -tci: tricolor/black 9 input voltage np: standard (4.75-5.25v) -lv: low voltage (3.30v) 10 temperature np: standard (0 ? c to +50 ? c) -e: extended temperature (-20 ? c to +70 ? c) table 82: part options 14.5 de?nitions e extended temperature (-20c to 70c) lv low voltage (+3.3v dc) yg yellow-green backlight tci inverse tricolor backlight gw white backlight with grey text matrix orbital lk204-7t-1u 61
wb blue background with white text msb most signi?cant byte lsb least signi?cant byte 14.6 contacting matrix orbital telephone sales: 1(403)229-2737 support: 1(403)204-3750 on the web sales: http://www.matrixorbital.com support: http://www.matrixorbital.ca forums: http://www.lcdforums.com 14.7 revision history table 83: revision history revision number description author 1.0 initial manual clark 1.1 updated font set and gpo image clark 1.2 updated backlight life clark matrix orbital lk204-7t-1u 62


▲Up To Search▲   

 
Price & Availability of LK204-7T-1U-WB

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X